/**
 * Copyright(c)2013 Beijing PeaceMap Co.,Ltd.
 * All right reserved. 
 */
package com.pmc.dwa.common.dialect;

/**
 * @description Mysql方言
 * @author aokunsang
 * @date 2013-4-2
 */
public class MysqlDialect extends Dialect {

	/* (non-Javadoc)
	 * @see com.empbox.common.dialect.Dialect#getLimitString(java.lang.String, int, int)
	 */
	@Override
	public String getLimitString(String sql, int offset, int limit) {
		 return new StringBuffer( sql.length() + 20 )
	                 .append( sql )
	                 .append( offset!=0 ? (" limit "+offset+", "+limit) : (" limit "+limit) )
	                 .toString();
	}

}
